package com.aitoedu.server.mapper;

import com.aitoedu.server.entity.Preview;
import com.aitoedu.server.vo.ChapterPreviewVO;
import com.aitoedu.server.vo.CoursePreviewVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 曹正豪
* @description 针对表【Preview(预习表)】的数据库操作Mapper
* @createDate 2024-10-17 22:51:15
* @Entity com.aitoedu.server.entity.Preview
*/
@Mapper
public interface PreviewMapper extends BaseMapper<Preview> {

    List<CoursePreviewVO> getCidsNameBySid(Long sid);

    List<ChapterPreviewVO> myPreview(@Param("sid") Long sid, @Param("courseId") Long courseId);
}




